@import '~@/assets/css/mixins';

.my_api_create {
  position: relative;
  min-height: 100%;
  background: @white;
  .back_bar {
    height: 67px;
    margin-bottom: 49px;
    padding-top: 26px;
    color: @gray-700;
    font-size: 16px;
    text-indent: 24px;
    border-bottom: 1px solid @gray-200;
    :global {
      .iocnfont {
        color: @gray-400;
        cursor: pointer;
      }
    }
    span {
      cursor: pointer;
    }
  }
  .container {
    margin-right: 8%;
    margin-left: 8%;
    .column {
      position: relative;
      display: inline-block;
      margin-right: 20px;
      padding-left: 11px;
      color: @gray-700;
      font-weight: @font-weight-bold;
      font-size: @font-size-16;
      &::before {
        position: absolute;
        top: 5px;
        left: 0;
        width: 3px;
        height: 14px;
        background: @primary;
        content: '';
      }
    }
    .target_table {
      :global {
        .ant-select {
          display: inline-block;
          width: calc(100% - 98px);
        }
      }
    }
    .check_bar {
      margin-top: -20px;
    }
    :global {
      .icon-yiwentishi {
        margin-left: 4px;
        color: @gray-500;
        vertical-align: middle;
      }
      .ant-table-cell {
        .ant-form-item {
          margin-bottom: 0;
        }
      }
      //
      //.ant-select-dropdown {
      //  .source-name {
      //    width: calc(100% - 20px);
      //    float: left;
      //    height: 100%;
      //    overflow: hidden;
      //    text-overflow: ellipsis;
      //    white-space: nowrap;
      //  }
      //
      //  .icon-chenggong {
      //    float: right;
      //    color: #43a047;
      //    font-size: 12px;
      //  }
      //
      //  .icon-shibai1 {
      //    float: right;
      //    color: #ef5350;
      //    font-size: 12px;
      //  }
      //}
      //
      //.ant-select-selection-item {
      //  .source-name {
      //    width: 100%;
      //    float: left;
      //    height: 100%;
      //    overflow: hidden;
      //    text-overflow: ellipsis;
      //    white-space: nowrap;
      //  }
      //  .icon-chenggong {
      //    float: right;
      //    color: #43a047;
      //    font-size: 12px;
      //    display: none;
      //  }
      //
      //  .icon-shibai1 {
      //    float: right;
      //    color: #ef5350;
      //    font-size: 12px;
      //    display: none;
      //  }
      //}
    }

    .column_title {
      margin-left: 10px;
    }
    .sign {
      :global {
        .ant-form-item-label {
          label {
            margin-top: 8px;
          }
        }
        .ant-pagination-options {
          display: none;
        }
      }
    }
    .diff_editor_box {
      height: 332px;
    }
    .require {
      label {
        &::before {
          display: inline-block;
          margin-right: 0.04rem;
          color: #ff4d4f;
          font-size: 0.14rem;
          font-family: SimSun, sans-serif;
          line-height: 1;
          content: '*';
        }
      }
    }
    .sign_bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      //:global {
      //  .ant-select {
      //    width: calc(100% - 80px);
      //  }
      //}
      .select_item {
        //width: calc(100% - 120px);
      }
      .view_btn {
        padding-right: 5px;
        width: 100px;
        text-align: right;
        font-size: 14px;
        color: @primary;
        cursor: pointer;
        &.disabled {
          pointer-events: none;
          cursor: not-allowed;
          color: @gray-600;
        }
      }
    }
  }
  .edit_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    margin-top: 10px;
    border-top: 1px solid rgb(@gray-200 0.04);
    box-shadow: @box-shadow-lg;
    .edit_btn {
      cursor: pointer;
    }
    .edit_btn + .edit_btn {
      margin-left: 16px;
    }
  }
}

:global {
  .ant-select-dropdown {
    .source-name {
      width: calc(100% - 20px);
      float: left;
      height: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .icon-chenggong {
      float: right;
      color: #43a047;
      font-size: 12px;
    }

    .icon-shibai1 {
      float: right;
      color: #ef5350;
      font-size: 12px;
    }
  }

  .ant-select-selection-item {
    .source-name {
      width: 100%;
      float: left;
      height: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .icon-chenggong {
      float: right;
      color: #43a047;
      font-size: 12px;
      display: none;
    }

    .icon-shibai1 {
      float: right;
      color: #ef5350;
      font-size: 12px;
      display: none;
    }
  }
}
